from prometheus_client import Counter, Summary


class Metric:
    REQUEST_TOTAL = Counter('http_request_total', 'Total number of requests', labelnames=['uri', 'code'])

    REQUEST_DURATION = Summary('http_request_duration_seconds', 'Request duration in seconds',
                               labelnames=['uri', 'code'])
